﻿using System;
using System.Collections.Generic;
using System.Text;

namespace PSAMMatrixCloud.Common
{
    /// <summary>
    /// 反馈结果简单类
    /// </summary>
    public class SimpleResult
    {
        /// <summary>
        /// 状态值1、成功 2、失败
        /// </summary>
        public string Status { set; get; }

        /// <summary>
        /// 反馈消息
        /// </summary>
        public string Message { set; get; }

        /// <summary>
        /// 自定义错误编码
        /// </summary>
        public string ErrorCode { set; get; }

        /// <summary>
        /// 扩展数据
        /// </summary>
        public object Data { set; get; }

    }

    /// <summary>
    /// 反馈结果简单类(泛型)
    /// </summary>
    /// <typeparam name="T"></typeparam>
    public class SimpleResult<T> : SimpleResult
    {
        /// <summary>
        /// 扩展数据
        /// </summary>

        public new T Data { set; get; }

    }
}
